home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Icon 8.1 / msm-1 / icont.sit / Makefile < prev    next >
Encoding:
Makefile  |  1992-10-10  |  4.6 KB  |  2 lines  |  [TEXT/MPS ]

  1. MakefileTEXTMPS ñ¨¶¸˘¶¸˘ÅÅ@~COptions= -b2 -mbg off -r -d MPW -d MPWFncs -d MacToolboxFncs -opt full
  2. LinkOpts= -d -c 'MPS ' -t MPST
  3. MAKE=make
  4.  
  5. TRANS=        trans.c.o tcode.c.o err.c.o keyword.c.o tlex.c.o lnklist.c.o  ∂
  6.            optab.c.o parse.c.o tsym.c.o tmem.c.o toktab.c.o tree.c.o
  7.  
  8. LINKR=        link.c.o lglob.c.o lcode.c.o llex.c.o lmem.c.o lsym.c.o opcode.c.o
  9.  
  10. OBJS=        tmain.c.o util.c.o tlocal.c.o {TRANS} {LINKR}
  11.  
  12. COBJS=        ::common:long.c.o ::common:getopt.c.o ::common:alloc.c.o  ∂
  13.            ::common:filepart.c.o ::common:strtbl.c.o
  14.  
  15. ICOBJS=        long.c.o getopt.c.o alloc.c.o filepart.c.o strtbl.c.o
  16.  
  17. PGMS=        icont
  18.  
  19. .c.o ƒ .c
  20.   {C} {DepDir}{Default}.c -o {TargDir}{Default}.c.o -s {Default} {COptions} {SymOption}
  21.  
  22. allƒ        {PGMS}
  23.  
  24. commonƒ
  25.         cd ::common; {MAKE} {ICOBJS}
  26.  
  27. icontƒ        hdr.h {OBJS} {COBJS} common
  28.     Link {LinkOpts} ∂
  29.         -sg Seg_lmem=long,lnklist,alloc,tmem,getopt,filepart,util,err,tree,tlocal,trans,lglob,link,lmem ∂
  30.         -sg Seg_tcode=toktab,opcode,optab,keyword,strtbl,tmain,lsym,tsym,llex,tlex,lcode,parse,tcode ∂
  31.         {OBJS} {COBJS} ∂
  32.         "{CLibraries}"CSANELib.o ∂
  33.         "{CLibraries}"Math.o ∂
  34.         #"{CLibraries}"Complex.o ∂
  35.         "{CLibraries}"StdClib.o ∂
  36.         "{Libraries}"Stubs.o ∂
  37.         "{Libraries}"Runtime.o ∂
  38.         "{Libraries}"Interface.o ∂
  39.         "{Libraries}"ToolLibs.o ∂
  40.         -o icont
  41.         cp icont :::bin
  42.  
  43. {OBJS}ƒ    ::h:config.h ::h:proto.h ::h:cproto.h ::h:define.h  ∂
  44.            ::h:gsupport.h ::h:typedefs.h ::h:cstructs.h tproto.h
  45.  
  46. tmain.c.oƒ    globals.h
  47. util.c.oƒ        globals.h link.h lfile.h tree.h trans.h ::h:fdefs.h
  48.  
  49. # translator files
  50. trans.c.oƒ    globals.h trans.h tsym.h token.h tree.h ::h:version.h
  51. err.c.oƒ        trans.h tlex.h token.h tree.h
  52. keyword.c.oƒ    tsym.h ::h:keyword.h
  53. lnklist.c.oƒ    trans.h lfile.h
  54. optab.c.oƒ    tlex.h
  55. parse.c.oƒ    trans.h tsym.h tree.h ::h:keyword.h
  56. tcode.c.oƒ    globals.h trans.h tsym.h token.h tree.h
  57. tlex.c.oƒ        trans.h tlex.h token.h tree.h
  58. toktab.c.oƒ    trans.h tlex.h token.h
  59. tmem.c.oƒ        globals.h trans.h tsym.h tree.h
  60. tree.c.oƒ        tree.h
  61. tsym.c.oƒ        globals.h trans.h lfile.h tsym.h token.h
  62.  
  63. # linker files
  64. {LINKR}ƒ    link.h lfile.h ::h:rt.h ::h:cpuconf.h
  65. link.c.oƒ        globals.h ::h:header.h hdr.h
  66. lcode.c.oƒ    globals.h opcode.h ::h:header.h  ∂
  67.             ::h:keyword.h ::h:opdefs.h ::h:version.h
  68. lglob.c.oƒ    opcode.h ::h:opdefs.h ::h:version.h
  69. llex.c.oƒ        globals.h opcode.h ::h:opdefs.h ::h:cpuconf.h
  70. lmem.c.oƒ        globals.h
  71. lsym.c.oƒ        globals.h
  72. opcode.c.oƒ    opcode.h ::h:opdefs.h
  73.  
  74. #
  75. #  The "segs" target runs a program that output sgementing options for
  76. #  the linker, so that segments don't exceed the 32K max.
  77. #
  78. segsƒ
  79.     echo -n > segments.work
  80.     for f in {OBJS} {COBJS}
  81.       dumpobj -mods -p "{f}" >> segments.work
  82.     end
  83.     segalloc < segments.work
  84.  
  85.  
  86. #
  87. #  The following sections are commented out because they do not need to be
  88. #  performed unless changes are made to icon_g.c, keywords.txt, tokens.txt, or
  89. #  optab.txt.  Such changes involve modifications to the syntax of Icon
  90. #  and are not part of the installation process.  However, if the
  91. #  distribution files are unloaded in a fashion such that their dates
  92. #  are not set properly, the following sections would be attempted.
  93. #
  94. #  Note that if any changes are made to the four files mentioned above,
  95. #  the comment characters at the beginning of the following lines should be
  96. #  removed.
  97. #
  98. #  Note that icont must be on your search path for this.
  99. #
  100. #parse.c token.hƒ    expanded.g trash pscript
  101. ## expect 219 :shift:reduce conflicts
  102. #            yacc -d expanded.g
  103. #            :trash <y.tab.c | :pscript >parse.c
  104. #            mv y.tab.h token.h
  105. #            rm -f y.tab.c
  106. #
  107. #expanded.gƒ        icon_g.c gdefs.h fixgram ::h:define.h
  108. #            {CC} -E -C icon_g.c | :fixgram >expanded.g
  109. #
  110. #keywords.txtƒ        key_text.c ::h:define.h
  111. #            {CC} -E -C key_text.c >keywords.txt
  112. #
  113. #::h:keyword.h keyword.cƒ  keywords.txt mkkeytab
  114. #            :mkkeytab
  115. #
  116. #toktab.c optab.cƒ    tokens.txt optab.txt mktoktab
  117. #            :mktoktab
  118. #
  119. #pscriptƒ        pscript.icn
  120. #            icont -s pscript.icn
  121. #
  122. #trashƒ            trash.icn
  123. #            icont -s trash.icn
  124. #
  125. #mkkeytabƒ        mkkeytab.icn
  126. #            icont -s mkkeytab.icn
  127. #
  128. #mktoktabƒ        mktoktab.icn
  129. #            icont -s mktoktab.icn
  130. #
  131. #fixgramƒ        fixgram.icn
  132. #            icont -s fixgram.icn
  133. nn>S= -N
  134. LDFLAGS=
  135. SHELL=/bin/sh
  136. MAKMakefile-TEXTMPS TEXTMPS ¶‡ΩÜñ¨o parse.o tsym.o tmem.o toktab.o tree.o
  137.  
  138. LINKR=        link.o lglob.o lcode.o llex.o lmem.o lsym.o opcode.o
  139.  
  140. OBJS=        tmain.o util.o tlocaH    Monacotrans.c.o tcode.c.o err.c*!À*!À¶¸¿flGG*!À*!Ànn>G`û>MPSR
  141. ÌˇˇˇˇLIp